import request from '@/utils/request'

export function billList(data) {
  return request({
    url: '/admin.php?s=Admin.OwnerBill.BillList',
    method: 'post',
    data,
  })
}

export function addOwnerBill(data) {
  return request({
    url: '/admin.php?s=Admin.OwnerBill.AddBill',
    method: 'post',
    data,
  })
}

export function editOwnerBill(data) {
  return request({
    url: '/admin.php?s=Admin.OwnerBill.ModifyBillInfo',
    method: 'post',
    data,
  })
}

export function addMoreOwnerBill(data) {
  return request({
    url: '/admin.php?s=Admin.OwnerBill.BatchAddBill',
    method: 'post',
    data,
  })
}

export function deleteOwnerBill(data) {
  return request({
    url: '/admin.php?s=Admin.OwnerBill.DeleteBill',
    method: 'post',
    data,
  })
}

export function setOwnerPayed(data) {
  return request({
    url: '/admin.php?s=Admin.OwnerBill.SetBillPayed',
    method: 'post',
    data,
  })
}

export function getpayedRoomBill(data) {
  return request({
    url: '/admin.php?s=Admin.OwnerBill.BillTotalListAtRoom',
    method: 'post',
    data,
  })
}
